import type { RouteRecordRaw } from "vue-router";
import type { CategoryObj } from "@/api/product/attr/type";
//定义小仓库数据state类型
export interface UserState{
    token:string|null,
    //定义路由类型(RouteRecordRaw路由对象类型)
    menuRoutes:RouteRecordRaw[],
    username:string,
    avatar:string,
    bottons:string[]
}
//定义分类仓库state对象的ts类型
export interface CategoryState{
    c1Id:string|number,
    c1Arr:CategoryObj[],
    c2Arr:CategoryObj[],
    c2Id:string|number,
    c3Arr:CategoryObj[],
    c3Id:string|number
}